home *** CD-ROM | disk | FTP | other *** search
/ Amiga Games Extra 1996 September / Amiga Games Extra CD-ROM 9-1996.iso / userbox / publicdomain / vim-4.2 / src / mk_os2pd.c < prev    next >
C/C++ Source or Header  |  1996-06-09  |  1KB  |  47 lines

  1. /* vi:set ts=4 sw=4:
  2.  *
  3.  * VIM - Vi IMproved        by Bram Moolenaar
  4.  *
  5.  * Do ":help uganda"  in Vim to read copying and usage conditions.
  6.  * Do ":help credits" in Vim to see a list of people who contributed.
  7.  */
  8.  
  9. /*
  10.  * mk_os2pd.c: separate program to create pathdef.c on OS/2
  11.  *
  12.  *        usage: mk_os2pd "$(CC)" "$(CFLAGS)" > pathdef.c
  13.  *
  14.  *                Created by Paul Slootman for the OS/2 - EMX port
  15.  */
  16.  
  17. #include "vim.h"
  18.  
  19.     void
  20. main(argc, argv)
  21.     int        argc;
  22.     char    **argv;
  23. {
  24.     puts("/* pathdef.c */");
  25.     puts("/* This file should automatically be created by mk_os2pd.exe */");
  26.     puts("/* Change mk_os2pd.c only (if at all...). */\n");
  27.     puts("#include \"vim.h\"");
  28.     puts("#ifndef SYS_VIMRC_FILE");
  29.     puts("char_u *sys_vimrc_fname = (char_u *)\"$VIM/.vimrc\";");
  30.     puts("#else");
  31.     puts("char_u *sys_vimrc_fname = (char_u *)SYS_VIMRC_FILE;");
  32.     puts("#endif");
  33.     puts("#ifndef SYS_GVIMRC_FILE");
  34.     puts("char_u *sys_gvimrc_fname = (char_u *)\"$VIM/.gvimrc\";");
  35.     puts("#else");
  36.     puts("char_u *sys_gvimrc_fname = (char_u *)SYS_GVIMRC_FILE;");
  37.     puts("#endif");
  38.     puts("#ifndef VIM_HLP");
  39.     puts("char_u *help_fname = (char_u *)\"$VIM/vim_help.txt\";");
  40.     puts("#else");
  41.     puts("char_u *help_fname = (char_u *)VIM_HLP;");
  42.     puts("#endif");
  43.     printf("char_u *all_cflags = (char_u *)\"%s %s\";\n", argv[1], argv[2]);
  44.  
  45.     exit(0);
  46. }
  47.